SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 46086: "Value cannot be null" exception might be returned when starting Microsoft Excel

DetailsAboutRate It

When starting Microsoft Excel, you might receive an exception similar to the following:

System.ArgumentNullException: Value cannot be null.
Parameter name: assemblyFile
   at System.Reflection.Assembly.InternalLoadFrom(String assemblyFile, Evidence
securityEvidence, Byte[] hashValue, AssemblyHashAlgorithm hashAlgorithm, Boolean
forIntrospection, StackCrawlMark& stackMark)
   at System.Reflection.Assembly.LoadFrom(String assemblyFile, Evidence
securityEvidence)
   at SAS.OfficeAddin.ExtensionManager.LoadExtensionsFromRegistry()
   at SAS.OfficeAddin.ExtensionManager..ctor()
   at SAS.OfficeAddin.OfficeAddinBase.Load()
   at SAS.OfficeAddin.ExcelAddin.Load()
   at SAS.OfficeAddin.Connect.CreateAddIn()
   at SAS.ExcelAddIn.VstoExcelAddIn.CreateAddIn()

This exception can occur on machines that had SAS® Performance Management installed, and then later removed. In this case, the SAS® Add-In for Microsoft Office finds a registry related to SAS Solutions, but the Add-In is unable to load an extension because the software is no longer installed.

To circumvent the problem, you must delete the HKEY_LOCAL_MACHINE\SOFTWARE\SAS Institute Inc.\AddIn for Microsoft Office\Extensions\SAS.Solutions.SPM.OfficeAddin.dll registry key.

Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemSAS Add-in for Microsoft OfficeMicrosoft® Windows® for x644.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Datacenter Edition4.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Enterprise Edition4.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 Standard Edition4.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2003 for x644.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 20084.35.19.2 TS2M39.3 TS1M0
Microsoft Windows Server 2008 for x644.35.19.2 TS2M39.3 TS1M0
Microsoft Windows XP Professional4.35.19.2 TS2M39.3 TS1M0
Windows 7 Enterprise 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Enterprise x644.35.19.2 TS2M39.3 TS1M0
Windows 7 Home Premium 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Home Premium x644.35.19.2 TS2M39.3 TS1M0
Windows 7 Professional 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Professional x644.35.19.2 TS2M39.3 TS1M0
Windows 7 Ultimate 32 bit4.35.19.2 TS2M39.3 TS1M0
Windows 7 Ultimate x644.35.19.2 TS2M39.3 TS1M0
Windows Vista4.35.19.2 TS2M39.3 TS1M0
Windows Vista for x644.35.19.2 TS2M39.3 TS1M0
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.